import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/tags/getList',
    method: 'get',
    params,
  })
}

export function getTagsTree(params) {
  return request({
    url: '/tags/getTree',
    method: 'get',
    params,
  })
}

export function get(params) {
  return request({
    url: '/tags/get',
    method: 'get',
    params,
  })
}

export function _delete(params) {
  return request({
    url: '/tags/delete',
    method: 'post',
    data: params,
  })
}

export function update(params) {
  return request({
    url: '/tags/update',
    method: 'post',
    data: params,
  })
}

export function add(params) {
  return request({
    url: '/tags/add',
    method: 'post',
    data: params,
  })
}
